#coding=utf-8

# coding=utf-8
import random


class person:
    def __init__(self, name=None, age=None, sex=None, hight=None, weight=None):
        """
        """
        self.name = name
        self.age = age
        self.sex = sex
        self.hight = hight
        self.weight = weight
        self.__setallinfo(name, age, sex, hight, weight)

    def __setname(self, name):
        if not name:
            name = u'章三' + str(random.randint(1, 9))
        self.name = name

    def __setage(self, age):
        if not age:
            age = str(random.randint(20, 30))
        self.age = age

    def __setsex(self, sex):
        self.sex = 'male'

    def __sethight(self, hight):
        self.hight = '170cm'

    def __setweight(self, weight):
        self.weight = '50kg'

    def __setallinfo(self, name, age, sex, hight, weight):
        self.__setname(name)
        self.__setage(age)
        self.__setsex(sex)
        self.__sethight(hight)
        self.__setweight(weight)


if __name__ == '__main__':
    a = person(u'李四')
    print a.name, a.age, a.sex










